import React from 'react';

export class Child extends React.Component {
  render() {
    console.log(this.props);
    return (
      <div style={{ border: '1px solid blue', padding: 24 }}>
        <div>我是子组件，我姓：{this.props.lastName}</div>
        <h2>{this.props.age}</h2>
        <h2>{this.props.hobbies.join('==>')}</h2>
        <h2>{this.props.obj.name}</h2>
        <h2>{this.props.obj.age}</h2>
        <div>{this.props.fn('child')}</div>
        <div>{this.props.jsx}</div>
      </div>
    );
  }
}
export default Child;
